export const compose =
  (...fns: any[]) =>
  (val: any) =>
    fns.reduce((arg, fn) => fn(arg), val)
